package baiqitun.stupro.subject.util;


import baiqitun.stupro.subject.constant.ProfessionalTitleEnum;

/**
 * @author kedaji
 */
public class ProfessionalTitleUtil {
    public static String match(String title){
        String v = null;
        switch (title){
            case "实验师":
                v = ProfessionalTitleEnum.Experimenter.getValue();
                break;
            case "助教":
                v = ProfessionalTitleEnum.TeachingAssistant.getValue();
                break;
            case "讲师":
                v = ProfessionalTitleEnum.Lecturer.getValue();
                break;
            case "副教授":
                v = ProfessionalTitleEnum.AssociateProfessor.getValue();
                break;
            case "教授":
                v = ProfessionalTitleEnum.Professor.getValue();
                break;
                default:
                    throw new IllegalArgumentException("title"+title);
        }
        return v;
    }
}
